export default {
    state: {
        form: localStorage.getItem("salesForm") ? JSON.parse(localStorage.getItem("salesForm")) : null,
    },
    mutations: {
        storeChangeForm(state, param) {
            state.form = param
            localStorage.setItem("salesForm", JSON.stringify(param))
        },
        storeRemoveForm(state) {
            state.form = null
            localStorage.removeItem("salesForm")
        },
    },
    namespanced: true
}